package top.wshape1.shiziapi.project.service;

import top.wshape1.shiziapi.project.domain.Read;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Wshape1
* @description 针对表【t_project_read】的数据库操作Service
* @since 2024-01-22 16:56:12
*/
public interface ReadService extends IService<Read> {

    /**
     * 项目浏览量加一
     * @param projectId
     */
    void read(Long projectId);

    /**
     * 统计项目的浏览量
     * @param projectId
     * @return
     */
    Long countRead(Long projectId);

}
